package com.app.service.impl;

import com.app.mapper.DevUserMapper;
import com.app.pojo.DevUser;
import com.app.service.DevUserService;
import com.sun.org.apache.bcel.internal.generic.NEW;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: App_SSM
 * @description: 业务实现
 * @author: Mr.peng
 * @create: 2020-06-10 17:15
 **/
@Service
public class DevUserServieceImpl implements DevUserService {
    @Resource
    DevUserMapper devUserMapper;

    @Override
    public DevUser selectByPrimaryKey(String dev_code, String password) {
        DevUser devUser= new DevUser();
        devUser=devUserMapper.selectByPrimaryKey(dev_code);
        if (devUser!=null){
            if (!devUser.getDevPassword().equals(password)){
                devUser=null;
            }
        }
        return devUser;
    }
}
